<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src='myurl' v-if='myurl'></web-view>
		<view class="picker_select" v-else="!myurl"> Wait a minute... </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				myurl:　""
			}
		},
		onLoad(options) {
			uni.setNavigationBarTitle({
				title: "Loading..."
			});
			
			// var data = JSON.parse(options.index); // 字符串转对象
			var myurl = decodeURIComponent(options.path); // 字符串转对象
			console.log('~~~~~~~~~~~~~ myurl: ', myurl);
			this.myurl = myurl;
			
			uni.setNavigationBarTitle({
				title: options.title
			});
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
